package com.jzd1997.lesson6;

/**
 * @Author: jiangzd
 * @Date: 16:36 2019/7/23
 */
public class Finery extends Person {
    protected Person component;
    public void Decorate(Person component){
        this.component = component;
    }


    @Override
    public void show() {
        if(component!=null){
            component.show();
        }
    }
}
